package com.cn.service.server.mc.Impl;
import com.cn.bean.pojo.mc.K3Dy;
import com.cn.bean.pojo.mc.K3Fl;
import com.cn.mapper.dao.db1.mc.K3WhDao;
import com.cn.service.server.mc.K3WhServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class K3WhServerImpl implements K3WhServer {

    private final K3WhDao k3WhDao;

    @Autowired(required=false)
    public K3WhServerImpl(K3WhDao k3WhDao) {

        this.k3WhDao = k3WhDao;
    }
    @Override
    public List<K3Fl> selectK3FlAll() {
        return k3WhDao.selectK3FlAll();
    }

    @Override
    public List<K3Dy> selectK3DyAll(int limit, int page, String k3dyId, String k3dyMc) {
        return k3WhDao.selectK3DyAll(limit,page,k3dyId,k3dyMc);
    }


    @Override
    public int getAutoId() {
        return k3WhDao.getAutoId();
    }

    @Override
    public int repeatK3flLbLevel(int level, String k3flLb) {
        return k3WhDao.repeatK3flLbLevel(level,k3flLb);
    }

    @Override
    public K3Fl selectK3flId(int k3flId) {
        return k3WhDao.selectK3flId(k3flId);
    }

    @Override
    public int insertMcFl(int k3flId, String k3flLb, int k3flState, String k3fLBz, int level, int parentBh) {
        return k3WhDao.insertMcFl(k3flId,k3flLb,k3flState,k3fLBz,level,parentBh);
    }

    @Override
    public int upDateMcFl(int k3flId, String k3flLb, int k3flState, String k3fLBz, int level, int parentBh) {
        return k3WhDao.upDateMcFl(k3flId,k3flLb,k3flState,k3fLBz,level,parentBh);
    }

    @Override
    public int deleteK3flId(int k3flId) {
        return k3WhDao.deleteK3flId(k3flId);
    }


}
